m = float(input())
if m != 0:
    y = 1 / m
    print(f'f({round(m,1)}) = {round(y,1)}')
else:
    y = 0.0
    print(f'f({round(m,1)}) = {round(y,1)}')